Magnet hypothesis: plant-pollinator interactions

Purpose: A test of the magnet hypothesis was examined in Mojave National Preserve by Ally Ruttan.

Hypothesis: Floral resource island created by shrubs and the associated beneficiary annual plants will positively and non-additively influence pollinator visitation rates.

Predictions:
(1) The frequency and duration of pollinator visitations to annuals is greater under shrubs than in the paired-open microsites (magnet H because of concentration).
(2) Annual plants under flowering entomophilous shrubs (Larrea tridentata) will have a higher frequency and duration of pollinator visitations than annual plants under anemophilous shrubs (Ambrosia dumosa) because of higher concentrations of suitable floral resources for pollinators (specificity of pollinator faciliation).
(3) Shrubs with annuals in their understory will have a higher frequency and duration of pollinator visitations than shrubs without annuals due to increased concentrations of floral resources for pollinators (reverse magnet effect and reciprocal benefits).
(4) Sites with both shrubs and annuals will have the highest frequency and duration of pollinator visitations to both the shrubs and the annuals (i.e. annuals under shrubs also with flowers are visited the most).

An interesting corollary is that there are appropriate floral resources for desert pollinators, that they discriminate, and that entomophilous and anemophilous shrubs facilitate flowering similarly.

Data wrangling

#libraries####
library(tidyverse)
library(DT)
library(lubridate)

#meta-data####
meta <- read_csv("data/meta-data.csv")
datatable(meta)
#error is SD

#data####
data.2015 <- read_csv("data/MNP.2015.csv")
data.2016 <- read_csv("data/MNP.2016.csv")

#merge
data <- rbind.data.frame(data.2015, data.2016)

#code treatment properly
data <- data %>% rename(net.treatment = treatment) #%>% na.omit(data) 

#keep key columns and minimize working dataframe
data <- data %>% select(-name, -plant, -start, -stop, -ID, -recorder)

#set year and rep as characters
data$year <- as.character(data$year)
data$rep <- as.character(data$rep)

#convert times to total seconds then to hour
data$total.duration <- (as.numeric(data$total.duration))/3600
data$visitation.duration <- (as.numeric(data$visitation.duration))/3600

#recode net.treatment column
data <- data %>% mutate(net.treatment = ifelse(net.treatment %in% c("SA"), "Larrea flowers with annuals", ifelse(net.treatment %in% c("SX"), "Larrea flowers without annuals", ifelse(net.treatment %in% c("SAA"), "Annual flowers under Larrea",ifelse(net.treatment %in% c("OA"), "Annual flowers in open",ifelse(net.treatment %in% c("AMB"), "Annual flowers under Ambrosia","NA"))))))

#frequency wrangled by RTU####
frequency <- data %>% group_by(year, day, net.treatment, rep, insect.RTU) %>% 
  summarise(net.time = sum(total.duration), mean.time = mean(total.duration), mean.temp = mean(temperature), net.visitation = sum(visitation.duration), mean.visitation.duration = mean(visitation.duration), net.floral.density = sum(floral.density), mean.floral.density = mean(floral.density), insect.richness = n_distinct(insect.RTU), count = n())

#richness in RTU
#richness <- frequency %>% group_by(year, day, net.treatment, rep) %>% summarise( insect.richness = mean(insect.richness)) #did not work correctly. need to wrangle data differently

#rates needed
frequency <- frequency %>% mutate(rate.per.flower = (count/mean.floral.density)) %>% mutate(rate.per.flower.hr = rate.per.flower/net.time) %>% mutate(rate.per.flower.mean.time = rate.per.flower/mean.time)

#exclude none and outliers
freq.rtu <- frequency %>% filter(insect.RTU != "none") %>% filter(rate.per.flower.hr <0.4) %>% filter(net.visitation <1) %>% filter(rate.per.flower.mean.time < 2)

frequency <- frequency %>% filter(rate.per.flower.hr <0.4) %>% filter(net.visitation <2)

frequency <- frequency %>% filter(insect.RTU != "none") %>% filter(rate.per.flower.hr <0.4) %>% filter(net.visitation <1) %>% filter(rate.per.flower.mean.time < 2)

#view frequency data
datatable(frequency)
#separate by year for stats
freq.2015 <- frequency %>% filter(year == 2015)
freq.2016 <- frequency %>% filter(year == 2016)

Data visualization

#visitations####
ggplot(freq.rtu, aes(net.treatment, count)) + geom_boxplot() + ylab("count") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

ggplot(freq.rtu, aes(net.treatment, count, fill = insect.RTU)) + geom_boxplot() + ylab("count") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

ggplot(freq.rtu, aes(net.treatment, rate.per.flower)) + geom_boxplot() + ylab("rate per flower") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

ggplot(freq.rtu, aes(net.treatment, rate.per.flower, fill = insect.RTU)) + geom_boxplot() + ylab("rate per flower") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

ggplot(freq.rtu, aes(net.treatment, rate.per.flower.mean.time)) + geom_boxplot() + ylab("rate per flower per mean hour recorded time") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

ggplot(freq.rtu, aes(net.treatment, rate.per.flower.mean.time, fill = insect.RTU)) + geom_boxplot() + ylab("rate per flower per mean hour recorded time") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

#visitation durations####
#net visitation time
ggplot(freq.rtu, aes(net.treatment, net.visitation)) + geom_boxplot() + ylab("net duration of visits (proportion of hour)") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

ggplot(freq.rtu, aes(net.treatment, net.visitation, fill = insect.RTU)) + geom_boxplot() + ylab("net duration of visits (proportion of hour)") + scale_fill_brewer(palette = "Blues") + facet_wrap(~year) + coord_flip()

#temperature####
ggplot(freq.rtu, aes(mean.temp, rate.per.flower, color = insect.RTU)) + geom_point() + ylab("rate per flower") + geom_smooth(method = "lm") + facet_wrap(~year)

ggplot(freq.rtu, aes(mean.temp, rate.per.flower.mean.time, color = insect.RTU)) + geom_point() + ylab("rate per flower per mean hour recorded time") + geom_smooth(method = "lm") + facet_wrap(~year)

ggplot(freq.rtu, aes(mean.temp, net.visitation, color = insect.RTU)) + geom_point() + ylab("net duration of visits") + geom_smooth(method = "lm") + facet_wrap(~year)

#floral density####
ggplot(freq.rtu, aes(mean.floral.density, rate.per.flower, color = insect.RTU)) + geom_point() + ylab("rate per flower") + geom_smooth(method = "lm") + facet_wrap(~year)

ggplot(freq.rtu, aes(mean.floral.density, rate.per.flower.mean.time, color = insect.RTU)) + geom_point() + ylab("rate per flower per mean hour recorded time") + geom_smooth(method = "lm") + facet_wrap(~year)

ggplot(freq.rtu, aes(mean.floral.density, net.visitation, color = insect.RTU)) + geom_point() + ylab("net duration of visits") + geom_smooth(method = "lm") + facet_wrap(~year)

EDA

summary(frequency)
##      year               day            net.treatment     
##  Length:491         Length:491         Length:491        
##  Class :character   Class :character   Class :character  
##  Mode  :character   Mode  :character   Mode  :character  
##                                                          
##                                                          
##                                                          
##      rep             insect.RTU           net.time         mean.time     
##  Length:491         Length:491         Min.   :  0.250   Min.   :0.2276  
##  Class :character   Class :character   1st Qu.:  0.500   1st Qu.:0.2500  
##  Mode  :character   Mode  :character   Median :  1.825   Median :1.1310  
##                                        Mean   :  7.591   Mean   :0.9273  
##                                        3rd Qu.:  6.759   3rd Qu.:1.3954  
##                                        Max.   :136.626   Max.   :1.6197  
##    mean.temp     net.visitation      mean.visitation.duration
##  Min.   :11.45   Min.   :0.0000000   Min.   :0.0000000       
##  1st Qu.:21.11   1st Qu.:0.0005556   1st Qu.:0.0002778       
##  Median :24.97   Median :0.0108333   Median :0.0048611       
##  Mean   :24.37   Mean   :0.0771849   Mean   :0.0108504       
##  3rd Qu.:27.65   3rd Qu.:0.0875000   3rd Qu.:0.0120364       
##  Max.   :33.97   Max.   :0.9463889   Max.   :0.1588889       
##  net.floral.density mean.floral.density insect.richness     count       
##  Min.   :   5.0     Min.   :  4.00      Min.   :1       Min.   : 1.000  
##  1st Qu.:  46.5     1st Qu.: 17.00      1st Qu.:1       1st Qu.: 1.000  
##  Median : 200.0     Median : 31.00      Median :1       Median : 2.000  
##  Mean   : 291.0     Mean   : 89.46      Mean   :1       Mean   : 6.363  
##  3rd Qu.: 400.0     3rd Qu.:200.00      3rd Qu.:1       3rd Qu.: 6.000  
##  Max.   :2821.0     Max.   :200.00      Max.   :1       Max.   :91.000  
##  rate.per.flower  rate.per.flower.hr rate.per.flower.mean.time
##  Min.   :0.0050   Min.   :0.009245   Min.   :0.01849          
##  1st Qu.:0.0100   1st Qu.:0.020000   1st Qu.:0.03238          
##  Median :0.0625   Median :0.022539   Median :0.06364          
##  Mean   :0.2860   Mean   :0.035339   Mean   :0.22851          
##  3rd Qu.:0.3000   3rd Qu.:0.044222   3rd Qu.:0.22148          
##  Max.   :2.9355   Max.   :0.170648   Max.   :1.95518
#distributions
require(fitdistrplus)
descdist(frequency$rate.per.flower, boot = 1000)

## summary statistics
## ------
## min:  0.005   max:  2.935484 
## median:  0.0625 
## mean:  0.2859648 
## estimated sd:  0.4996309 
## estimated skewness:  2.543538 
## estimated kurtosis:  9.390094
descdist(frequency$rate.per.flower.mean.time, boot = 1000)

## summary statistics
## ------
## min:  0.01849022   max:  1.955179 
## median:  0.06364123 
## mean:  0.2285103 
## estimated sd:  0.3770836 
## estimated skewness:  2.605647 
## estimated kurtosis:  9.506303
descdist(frequency$net.visitation, boot = 1000)

## summary statistics
## ------
## min:  0   max:  0.9463889 
## median:  0.01083333 
## mean:  0.07718488 
## estimated sd:  0.1435749 
## estimated skewness:  2.841609 
## estimated kurtosis:  12.40795
#plots
plotdist(frequency$rate.per.flower)

plotdist(frequency$rate.per.flower.mean.time)

plotdist(frequency$net.visitation)

#fitting
a <- frequency$rate.per.flower
fitg <- fitdist(a, "gamma")
fitw <- fitdist(a, "weibull")
fitn <- fitdist(a, "norm")
fitl <- fitdist(a, "lnorm")
gofstat(list(fitg, fitw, fitn, fitl), fitnames = c("gamma", "weibull", "normal", "lognormal"))
## Goodness-of-fit statistics
##                                   gamma   weibull     normal lognormal
## Kolmogorov-Smirnov statistic  0.1339425 0.1288865  0.2867453 0.1143861
## Cramer-von Mises statistic    2.4584535 1.1774767 13.5992885 0.9455949
## Anderson-Darling statistic   14.7869904 8.9084667 70.6985821 7.8267494
## 
## Goodness-of-fit criteria
##                                    gamma   weibull   normal lognormal
## Akaike's Information Criterion -568.3409 -614.1379 715.0009 -669.4631
## Bayesian Information Criterion -559.9480 -605.7450 723.3938 -661.0702
a <- frequency$rate.per.flower.mean.time
fitg <- fitdist(a, "gamma")
fitw <- fitdist(a, "weibull")
fitn <- fitdist(a, "norm")
fitl <- fitdist(a, "lnorm")
gofstat(list(fitg, fitw, fitn, fitl), fitnames = c("gamma", "weibull", "normal", "lognormal"))
## Goodness-of-fit statistics
##                                   gamma    weibull     normal  lognormal
## Kolmogorov-Smirnov statistic  0.1712137  0.1815332  0.2885837  0.1271809
## Cramer-von Mises statistic    5.1774716  3.3367550 14.4437869  1.8723755
## Anderson-Darling statistic   28.2275221 20.3946910 74.5720226 12.4976228
## 
## Goodness-of-fit criteria
##                                    gamma   weibull   normal lognormal
## Akaike's Information Criterion -534.7070 -580.2532 438.6633 -717.2037
## Bayesian Information Criterion -526.3141 -571.8604 447.0562 -708.8108
a <- frequency$net.visitation
fitn <- fitdist(a, "norm")
gofstat(fitn)  
## Goodness-of-fit statistics
##                              1-mle-norm
## Kolmogorov-Smirnov statistic  0.2952397
## Cramer-von Mises statistic   14.1661667
## Anderson-Darling statistic   71.2237217
## 
## Goodness-of-fit criteria
##                                1-mle-norm
## Akaike's Information Criterion  -509.5657
## Bayesian Information Criterion  -501.1728
detach("package:fitdistrplus", unload = TRUE)
#summary: gamma, gamma, normal have lowers AIC scores

Models

#Simple models####
#visitations
m <- glm(rate.per.flower~net.treatment:insect.RTU %in% rep + mean.temp, family = "Gamma", data = freq.2015)
anova(m, test = "Chisq")
## Analysis of Deviance Table
## 
## Model: Gamma, link: inverse
## 
## Response: rate.per.flower
## 
## Terms added sequentially (first to last)
## 
## 
##                              Df Deviance Resid. Df Resid. Dev  Pr(>Chi)
## NULL                                           260     585.41          
## mean.temp                     1    71.35       259     514.06 7.729e-15
## net.treatment:insect.RTU:rep 47   258.76       212     255.31 < 2.2e-16
##                                 
## NULL                            
## mean.temp                    ***
## net.treatment:insect.RTU:rep ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
require(lsmeans)
lsmeans(m, pairwise~net.treatment:insect.RTU, adjust="tukey")
## $lsmeans
##  net.treatment                  insect.RTU    lsmean         SE df
##  Annual flowers in open         bees        5.090819  1.0286834 NA
##  Annual flowers under Larrea    bees        2.471637  0.6256365 NA
##  Larrea flowers with annuals    bees       49.035496 11.3380515 NA
##  Larrea flowers without annuals bees       23.187193  4.9070882 NA
##  Annual flowers in open         flies       7.755031  1.3393806 NA
##  Annual flowers under Larrea    flies       3.449811  1.0255772 NA
##  Larrea flowers with annuals    flies      64.749381 16.9726820 NA
##  Larrea flowers without annuals flies      47.421632 14.6737456 NA
##  Annual flowers in open         other       8.363670  1.6010934 NA
##  Annual flowers under Larrea    other       5.894874  1.9618768 NA
##  Larrea flowers with annuals    other      16.030298  6.7333367 NA
##  Larrea flowers without annuals other      13.673377  9.2627934 NA
##  asymp.LCL asymp.UCL
##   3.074637  7.107002
##   1.245412  3.697862
##  26.813323 71.257668
##  13.569477 32.804910
##   5.129894 10.380169
##   1.439717  5.459906
##  31.483536 98.015227
##  18.661619 76.181645
##   5.225585 11.501756
##   2.049666  9.740082
##   2.833200 29.227395
##  -4.481365 31.828118
## 
## Results are averaged over the levels of: rep 
## Results are given on the inverse (not the response) scale. 
## Confidence level used: 0.95 
## 
## $contrasts
##  contrast                                                                   
##  Annual flowers in open,bees - Annual flowers under Larrea,bees             
##  Annual flowers in open,bees - Larrea flowers with annuals,bees             
##  Annual flowers in open,bees - Larrea flowers without annuals,bees          
##  Annual flowers in open,bees - Annual flowers in open,flies                 
##  Annual flowers in open,bees - Annual flowers under Larrea,flies            
##  Annual flowers in open,bees - Larrea flowers with annuals,flies            
##  Annual flowers in open,bees - Larrea flowers without annuals,flies         
##  Annual flowers in open,bees - Annual flowers in open,other                 
##  Annual flowers in open,bees - Annual flowers under Larrea,other            
##  Annual flowers in open,bees - Larrea flowers with annuals,other            
##  Annual flowers in open,bees - Larrea flowers without annuals,other         
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,bees        
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,bees     
##  Annual flowers under Larrea,bees - Annual flowers in open,flies            
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,flies       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,flies       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,flies    
##  Annual flowers under Larrea,bees - Annual flowers in open,other            
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,other       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,other       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,other    
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,bees     
##  Larrea flowers with annuals,bees - Annual flowers in open,flies            
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,flies       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,flies       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,flies    
##  Larrea flowers with annuals,bees - Annual flowers in open,other            
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,other       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,other       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,other    
##  Larrea flowers without annuals,bees - Annual flowers in open,flies         
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,flies    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,flies    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,flies 
##  Larrea flowers without annuals,bees - Annual flowers in open,other         
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,other    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,other    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,other 
##  Annual flowers in open,flies - Annual flowers under Larrea,flies           
##  Annual flowers in open,flies - Larrea flowers with annuals,flies           
##  Annual flowers in open,flies - Larrea flowers without annuals,flies        
##  Annual flowers in open,flies - Annual flowers in open,other                
##  Annual flowers in open,flies - Annual flowers under Larrea,other           
##  Annual flowers in open,flies - Larrea flowers with annuals,other           
##  Annual flowers in open,flies - Larrea flowers without annuals,other        
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,flies      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,flies   
##  Annual flowers under Larrea,flies - Annual flowers in open,other           
##  Annual flowers under Larrea,flies - Annual flowers under Larrea,other      
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,flies   
##  Larrea flowers with annuals,flies - Annual flowers in open,other           
##  Larrea flowers with annuals,flies - Annual flowers under Larrea,other      
##  Larrea flowers with annuals,flies - Larrea flowers with annuals,other      
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,other   
##  Larrea flowers without annuals,flies - Annual flowers in open,other        
##  Larrea flowers without annuals,flies - Annual flowers under Larrea,other   
##  Larrea flowers without annuals,flies - Larrea flowers with annuals,other   
##  Larrea flowers without annuals,flies - Larrea flowers without annuals,other
##  Annual flowers in open,other - Annual flowers under Larrea,other           
##  Annual flowers in open,other - Larrea flowers with annuals,other           
##  Annual flowers in open,other - Larrea flowers without annuals,other        
##  Annual flowers under Larrea,other - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,other - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,other - Larrea flowers without annuals,other   
##     estimate        SE df z.ratio p.value
##    2.6191826  1.283453 NA   2.041  0.6653
##  -43.9446767 11.412264 NA  -3.851  0.0066
##  -18.0963741  5.051708 NA  -3.582  0.0177
##   -2.6642120  1.159231 NA  -2.298  0.4777
##    1.6410081  1.526489 NA   1.075  0.9957
##  -59.6585619 17.020321 NA  -3.505  0.0232
##  -42.3308124 14.719506 NA  -2.876  0.1495
##   -3.2728510  1.399425 NA  -2.339  0.4487
##   -0.8040545  2.320489 NA  -0.347  1.0000
##  -10.9394783  6.855599 NA  -1.596  0.9111
##   -8.5825576  9.353038 NA  -0.918  0.9990
##  -46.5638593 11.352302 NA  -4.102  0.0024
##  -20.7155567  4.942638 NA  -4.191  0.0017
##   -5.2833946  1.532407 NA  -3.448  0.0281
##   -0.9781745  1.191406 NA  -0.821  0.9996
##  -62.2777445 16.982424 NA  -3.667  0.0131
##  -44.9499950 14.686022 NA  -3.061  0.0918
##   -5.8920336  1.770472 NA  -3.328  0.0415
##   -3.4232370  2.046657 NA  -1.673  0.8809
##  -13.5586609  6.757521 NA  -2.006  0.6892
##  -11.2017402  9.280280 NA  -1.207  0.9886
##   25.8483026 12.349063 NA   2.093  0.6278
##   41.2804647 11.439615 NA   3.609  0.0162
##   45.5856848 11.381010 NA   4.005  0.0036
##  -15.7138852 20.406618 NA  -0.770  0.9998
##    1.6138643 18.541074 NA   0.087  1.0000
##   40.6718257 11.475527 NA   3.544  0.0202
##   43.1406222 11.499388 NA   3.752  0.0096
##   33.0051984 13.178827 NA   2.504  0.3369
##   35.3621191 14.633408 NA   2.417  0.3946
##   15.4321621  5.117458 NA   3.016  0.1039
##   19.7373822  5.008528 NA   3.941  0.0046
##  -41.5621878 17.664492 NA  -2.353  0.4387
##  -24.2344383 15.470567 NA  -1.566  0.9211
##   14.8235231  5.195218 NA   2.853  0.1580
##   17.2923197  5.275299 NA   3.278  0.0485
##    7.1568959  8.324145 NA   0.860  0.9994
##    9.5138166 10.476117 NA   0.908  0.9991
##    4.3052201  1.739894 NA   2.474  0.3561
##  -56.9943499 17.039028 NA  -3.345  0.0393
##  -39.6666004 14.742768 NA  -2.691  0.2307
##   -0.6086390  1.728125 NA  -0.352  1.0000
##    1.8601575  2.456931 NA   0.757  0.9998
##   -8.2752663  6.901376 NA  -1.199  0.9892
##   -5.9183456  9.386470 NA  -0.631  1.0000
##  -61.2995700 17.001653 NA  -3.606  0.0163
##  -43.9718205 14.708368 NA  -2.990  0.1114
##   -4.9138591  1.953314 NA  -2.516  0.3298
##   -2.4450626  2.200753 NA  -1.111  0.9943
##  -12.5804864  6.805663 NA  -1.849  0.7909
##  -10.2235657  9.315382 NA  -1.097  0.9949
##   17.3277495 22.434410 NA   0.772  0.9998
##   56.3857109 17.062988 NA   3.305  0.0446
##   58.8545074 17.081406 NA   3.446  0.0283
##   48.7190836 18.254445 NA   2.669  0.2418
##   51.0760043 19.330819 NA   2.642  0.2560
##   39.0579614 14.769667 NA   2.644  0.2548
##   41.5267579 14.801787 NA   2.806  0.1774
##   31.3913341 16.141935 NA   1.945  0.7309
##   33.7482548 17.349947 NA   1.945  0.7306
##    2.4687965  2.616585 NA   0.944  0.9987
##   -7.6666273  6.960578 NA  -1.101  0.9947
##   -5.3097066  9.430166 NA  -0.563  1.0000
##  -10.1354238  7.002097 NA  -1.447  0.9540
##   -7.7785031  9.459706 NA  -0.822  0.9996
##    2.3569207 11.442560 NA   0.206  1.0000
## 
## Results are averaged over the levels of: rep 
## P value adjustment: tukey method for comparing a family of 12 estimates
m <- glm(rate.per.flower~net.treatment:insect.RTU %in% rep + mean.temp, family = "Gamma", data = freq.2016)
anova(m, test = "Chisq")
## Analysis of Deviance Table
## 
## Model: Gamma, link: inverse
## 
## Response: rate.per.flower
## 
## Terms added sequentially (first to last)
## 
## 
##                              Df Deviance Resid. Df Resid. Dev  Pr(>Chi)
## NULL                                           229     795.36          
## mean.temp                     1    35.87       228     759.48 < 2.2e-16
## net.treatment:insect.RTU:rep 57   682.21       171      77.28 < 2.2e-16
##                                 
## NULL                            
## mean.temp                    ***
## net.treatment:insect.RTU:rep ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
lsmeans(m, pairwise~net.treatment:insect.RTU, adjust="tukey")
## $lsmeans
##  net.treatment                  insect.RTU   lsmean        SE df asymp.LCL
##  Annual flowers in open         bees       1.908165 0.6590318 NA 0.6164863
##  Annual flowers under Ambrosia  bees             NA        NA NA        NA
##  Annual flowers under Larrea    bees             NA        NA NA        NA
##  Larrea flowers with annuals    bees             NA        NA NA        NA
##  Larrea flowers without annuals bees             NA        NA NA        NA
##  Annual flowers in open         flies            NA        NA NA        NA
##  Annual flowers under Ambrosia  flies            NA        NA NA        NA
##  Annual flowers under Larrea    flies            NA        NA NA        NA
##  Larrea flowers with annuals    flies            NA        NA NA        NA
##  Larrea flowers without annuals flies            NA        NA NA        NA
##  Annual flowers in open         other            NA        NA NA        NA
##  Annual flowers under Ambrosia  other            NA        NA NA        NA
##  Annual flowers under Larrea    other            NA        NA NA        NA
##  Larrea flowers with annuals    other            NA        NA NA        NA
##  Larrea flowers without annuals other            NA        NA NA        NA
##  asymp.UCL
##   3.199843
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
## 
## Results are averaged over the levels of: rep 
## Results are given on the inverse (not the response) scale. 
## Confidence level used: 0.95 
## 
## $contrasts
##  contrast                                                                   
##  Annual flowers in open,bees - Annual flowers under Ambrosia,bees           
##  Annual flowers in open,bees - Annual flowers under Larrea,bees             
##  Annual flowers in open,bees - Larrea flowers with annuals,bees             
##  Annual flowers in open,bees - Larrea flowers without annuals,bees          
##  Annual flowers in open,bees - Annual flowers in open,flies                 
##  Annual flowers in open,bees - Annual flowers under Ambrosia,flies          
##  Annual flowers in open,bees - Annual flowers under Larrea,flies            
##  Annual flowers in open,bees - Larrea flowers with annuals,flies            
##  Annual flowers in open,bees - Larrea flowers without annuals,flies         
##  Annual flowers in open,bees - Annual flowers in open,other                 
##  Annual flowers in open,bees - Annual flowers under Ambrosia,other          
##  Annual flowers in open,bees - Annual flowers under Larrea,other            
##  Annual flowers in open,bees - Larrea flowers with annuals,other            
##  Annual flowers in open,bees - Larrea flowers without annuals,other         
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,bees      
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,bees      
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,bees   
##  Annual flowers under Ambrosia,bees - Annual flowers in open,flies          
##  Annual flowers under Ambrosia,bees - Annual flowers under Ambrosia,flies   
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,flies     
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,flies     
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,flies  
##  Annual flowers under Ambrosia,bees - Annual flowers in open,other          
##  Annual flowers under Ambrosia,bees - Annual flowers under Ambrosia,other   
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,other     
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,other     
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,other  
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,bees        
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,bees     
##  Annual flowers under Larrea,bees - Annual flowers in open,flies            
##  Annual flowers under Larrea,bees - Annual flowers under Ambrosia,flies     
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,flies       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,flies       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,flies    
##  Annual flowers under Larrea,bees - Annual flowers in open,other            
##  Annual flowers under Larrea,bees - Annual flowers under Ambrosia,other     
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,other       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,other       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,other    
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,bees     
##  Larrea flowers with annuals,bees - Annual flowers in open,flies            
##  Larrea flowers with annuals,bees - Annual flowers under Ambrosia,flies     
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,flies       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,flies       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,flies    
##  Larrea flowers with annuals,bees - Annual flowers in open,other            
##  Larrea flowers with annuals,bees - Annual flowers under Ambrosia,other     
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,other       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,other       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,other    
##  Larrea flowers without annuals,bees - Annual flowers in open,flies         
##  Larrea flowers without annuals,bees - Annual flowers under Ambrosia,flies  
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,flies    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,flies    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,flies 
##  Larrea flowers without annuals,bees - Annual flowers in open,other         
##  Larrea flowers without annuals,bees - Annual flowers under Ambrosia,other  
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,other    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,other    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,other 
##  Annual flowers in open,flies - Annual flowers under Ambrosia,flies         
##  Annual flowers in open,flies - Annual flowers under Larrea,flies           
##  Annual flowers in open,flies - Larrea flowers with annuals,flies           
##  Annual flowers in open,flies - Larrea flowers without annuals,flies        
##  Annual flowers in open,flies - Annual flowers in open,other                
##  Annual flowers in open,flies - Annual flowers under Ambrosia,other         
##  Annual flowers in open,flies - Annual flowers under Larrea,other           
##  Annual flowers in open,flies - Larrea flowers with annuals,other           
##  Annual flowers in open,flies - Larrea flowers without annuals,other        
##  Annual flowers under Ambrosia,flies - Annual flowers under Larrea,flies    
##  Annual flowers under Ambrosia,flies - Larrea flowers with annuals,flies    
##  Annual flowers under Ambrosia,flies - Larrea flowers without annuals,flies 
##  Annual flowers under Ambrosia,flies - Annual flowers in open,other         
##  Annual flowers under Ambrosia,flies - Annual flowers under Ambrosia,other  
##  Annual flowers under Ambrosia,flies - Annual flowers under Larrea,other    
##  Annual flowers under Ambrosia,flies - Larrea flowers with annuals,other    
##  Annual flowers under Ambrosia,flies - Larrea flowers without annuals,other 
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,flies      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,flies   
##  Annual flowers under Larrea,flies - Annual flowers in open,other           
##  Annual flowers under Larrea,flies - Annual flowers under Ambrosia,other    
##  Annual flowers under Larrea,flies - Annual flowers under Larrea,other      
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,flies   
##  Larrea flowers with annuals,flies - Annual flowers in open,other           
##  Larrea flowers with annuals,flies - Annual flowers under Ambrosia,other    
##  Larrea flowers with annuals,flies - Annual flowers under Larrea,other      
##  Larrea flowers with annuals,flies - Larrea flowers with annuals,other      
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,other   
##  Larrea flowers without annuals,flies - Annual flowers in open,other        
##  Larrea flowers without annuals,flies - Annual flowers under Ambrosia,other 
##  Larrea flowers without annuals,flies - Annual flowers under Larrea,other   
##  Larrea flowers without annuals,flies - Larrea flowers with annuals,other   
##  Larrea flowers without annuals,flies - Larrea flowers without annuals,other
##  Annual flowers in open,other - Annual flowers under Ambrosia,other         
##  Annual flowers in open,other - Annual flowers under Larrea,other           
##  Annual flowers in open,other - Larrea flowers with annuals,other           
##  Annual flowers in open,other - Larrea flowers without annuals,other        
##  Annual flowers under Ambrosia,other - Annual flowers under Larrea,other    
##  Annual flowers under Ambrosia,other - Larrea flowers with annuals,other    
##  Annual flowers under Ambrosia,other - Larrea flowers without annuals,other 
##  Annual flowers under Larrea,other - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,other - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,other - Larrea flowers without annuals,other   
##  estimate SE df z.ratio p.value
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
## 
## Results are averaged over the levels of: rep 
## P value adjustment: tukey method for comparing a family of 15 estimates
lsmeans(m, pairwise~insect.RTU, adjust="tukey")
## $lsmeans
##  insect.RTU lsmean SE df asymp.LCL asymp.UCL
##  bees           NA NA NA        NA        NA
##  flies          NA NA NA        NA        NA
##  other          NA NA NA        NA        NA
## 
## Results are averaged over the levels of: net.treatment, rep 
## Results are given on the inverse (not the response) scale. 
## Confidence level used: 0.95 
## 
## $contrasts
##  contrast      estimate SE df z.ratio p.value
##  bees - flies        NA NA NA      NA      NA
##  bees - other        NA NA NA      NA      NA
##  flies - other       NA NA NA      NA      NA
## 
## Results are averaged over the levels of: net.treatment, rep 
## P value adjustment: tukey method for comparing a family of 3 estimates
m <- glm(rate.per.flower.mean.time~net.treatment:insect.RTU %in% rep + mean.temp, family = "Gamma", data = freq.2015)
anova(m, test = "Chisq")
## Analysis of Deviance Table
## 
## Model: Gamma, link: inverse
## 
## Response: rate.per.flower.mean.time
## 
## Terms added sequentially (first to last)
## 
## 
##                              Df Deviance Resid. Df Resid. Dev  Pr(>Chi)
## NULL                                           260     317.65          
## mean.temp                     1   52.501       259     265.15 < 2.2e-16
## net.treatment:insect.RTU:rep 47  134.866       212     130.28 < 2.2e-16
##                                 
## NULL                            
## mean.temp                    ***
## net.treatment:insect.RTU:rep ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
lsmeans(m, pairwise~net.treatment:insect.RTU, adjust="tukey")
## $lsmeans
##  net.treatment                  insect.RTU    lsmean         SE df
##  Annual flowers in open         bees        6.644304  0.9785245 NA
##  Annual flowers under Larrea    bees        3.378622  0.6279304 NA
##  Larrea flowers with annuals    bees       14.120189  2.3722563 NA
##  Larrea flowers without annuals bees       19.601627  3.0567939 NA
##  Annual flowers in open         flies       9.970112  1.2420737 NA
##  Annual flowers under Larrea    flies       4.787899  1.0259360 NA
##  Larrea flowers with annuals    flies      29.318600  5.6069502 NA
##  Larrea flowers without annuals flies      27.343076  5.2315567 NA
##  Annual flowers in open         other      11.545209  1.6549062 NA
##  Annual flowers under Larrea    other       8.325839  1.9803861 NA
##  Larrea flowers with annuals    other      21.684409  6.8371825 NA
##  Larrea flowers without annuals other      21.066784 10.4717261 NA
##   asymp.LCL asymp.UCL
##   4.7264314  8.562177
##   2.1479015  4.609343
##   9.4706523 18.769726
##  13.6104209 25.592833
##   7.5356921 12.404531
##   2.7771014  6.798697
##  18.3291800 40.308021
##  17.0894135 37.596739
##   8.3016521 14.788765
##   4.4443541 12.207325
##   8.2837779 35.085041
##   0.5425783 41.590990
## 
## Results are averaged over the levels of: rep 
## Results are given on the inverse (not the response) scale. 
## Confidence level used: 0.95 
## 
## $contrasts
##  contrast                                                                   
##  Annual flowers in open,bees - Annual flowers under Larrea,bees             
##  Annual flowers in open,bees - Larrea flowers with annuals,bees             
##  Annual flowers in open,bees - Larrea flowers without annuals,bees          
##  Annual flowers in open,bees - Annual flowers in open,flies                 
##  Annual flowers in open,bees - Annual flowers under Larrea,flies            
##  Annual flowers in open,bees - Larrea flowers with annuals,flies            
##  Annual flowers in open,bees - Larrea flowers without annuals,flies         
##  Annual flowers in open,bees - Annual flowers in open,other                 
##  Annual flowers in open,bees - Annual flowers under Larrea,other            
##  Annual flowers in open,bees - Larrea flowers with annuals,other            
##  Annual flowers in open,bees - Larrea flowers without annuals,other         
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,bees        
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,bees     
##  Annual flowers under Larrea,bees - Annual flowers in open,flies            
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,flies       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,flies       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,flies    
##  Annual flowers under Larrea,bees - Annual flowers in open,other            
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,other       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,other       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,other    
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,bees     
##  Larrea flowers with annuals,bees - Annual flowers in open,flies            
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,flies       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,flies       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,flies    
##  Larrea flowers with annuals,bees - Annual flowers in open,other            
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,other       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,other       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,other    
##  Larrea flowers without annuals,bees - Annual flowers in open,flies         
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,flies    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,flies    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,flies 
##  Larrea flowers without annuals,bees - Annual flowers in open,other         
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,other    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,other    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,other 
##  Annual flowers in open,flies - Annual flowers under Larrea,flies           
##  Annual flowers in open,flies - Larrea flowers with annuals,flies           
##  Annual flowers in open,flies - Larrea flowers without annuals,flies        
##  Annual flowers in open,flies - Annual flowers in open,other                
##  Annual flowers in open,flies - Annual flowers under Larrea,other           
##  Annual flowers in open,flies - Larrea flowers with annuals,other           
##  Annual flowers in open,flies - Larrea flowers without annuals,other        
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,flies      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,flies   
##  Annual flowers under Larrea,flies - Annual flowers in open,other           
##  Annual flowers under Larrea,flies - Annual flowers under Larrea,other      
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,flies   
##  Larrea flowers with annuals,flies - Annual flowers in open,other           
##  Larrea flowers with annuals,flies - Annual flowers under Larrea,other      
##  Larrea flowers with annuals,flies - Larrea flowers with annuals,other      
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,other   
##  Larrea flowers without annuals,flies - Annual flowers in open,other        
##  Larrea flowers without annuals,flies - Annual flowers under Larrea,other   
##  Larrea flowers without annuals,flies - Larrea flowers with annuals,other   
##  Larrea flowers without annuals,flies - Larrea flowers without annuals,other
##  Annual flowers in open,other - Annual flowers under Larrea,other           
##  Annual flowers in open,other - Larrea flowers with annuals,other           
##  Annual flowers in open,other - Larrea flowers without annuals,other        
##  Annual flowers under Larrea,other - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,other - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,other - Larrea flowers without annuals,other   
##     estimate        SE df z.ratio p.value
##    3.2656818  1.240374 NA   2.633  0.2611
##   -7.4758849  2.660198 NA  -2.810  0.1754
##  -12.9573227  3.250963 NA  -3.986  0.0039
##   -3.3258075  1.074098 NA  -3.096  0.0831
##    1.8564052  1.489954 NA   1.246  0.9852
##  -22.6742962  5.733501 NA  -3.955  0.0044
##  -20.6987718  5.338150 NA  -3.878  0.0059
##   -4.9009044  1.487484 NA  -3.295  0.0460
##   -1.6815352  2.306962 NA  -0.729  0.9999
##  -15.0401051  6.946200 NA  -2.165  0.5752
##  -14.4224800 10.543907 NA  -1.368  0.9695
##  -10.7415668  2.442457 NA  -4.398  0.0007
##  -16.2230045  3.115714 NA  -5.207  <.0001
##   -6.5914894  1.446123 NA  -4.558  0.0003
##   -1.4092766  1.192812 NA  -1.181  0.9904
##  -25.9399780  5.637152 NA  -4.602  0.0003
##  -23.9644537  5.267268 NA  -4.550  0.0003
##   -8.1665862  1.817398 NA  -4.494  0.0004
##   -4.9472170  2.065316 NA  -2.395  0.4090
##  -18.3057870  6.861408 NA  -2.668  0.2423
##  -17.6881618 10.487482 NA  -1.687  0.8748
##   -5.4814377  3.858887 NA  -1.420  0.9598
##    4.1500774  2.752518 NA   1.508  0.9389
##    9.3322901  2.572325 NA   3.628  0.0151
##  -15.1984113  6.076304 NA  -2.501  0.3389
##  -13.2228869  5.739842 NA  -2.304  0.4738
##    2.5749805  2.968779 NA   0.867  0.9994
##    5.7943497  3.068561 NA   1.888  0.7669
##   -7.5642202  7.225670 NA  -1.047  0.9966
##   -6.9465951 10.729211 NA  -0.647  1.0000
##    9.6315151  3.332790 NA   2.890  0.1443
##   14.8137278  3.219025 NA   4.602  0.0003
##   -9.7169735  6.379935 NA  -1.523  0.9346
##   -7.7414492  6.056851 NA  -1.278  0.9819
##    8.0564183  3.510830 NA   2.295  0.4803
##   11.2757875  3.632266 NA   3.104  0.0812
##   -2.0827825  7.483427 NA  -0.278  1.0000
##   -1.4651573 10.904555 NA  -0.134  1.0000
##    5.1822127  1.663933 NA   3.114  0.0789
##  -19.3484887  5.777124 NA  -3.349  0.0388
##  -17.3729643  5.389958 NA  -3.223  0.0573
##   -1.5750969  1.748145 NA  -0.901  0.9991
##    1.6442723  2.414598 NA   0.681  0.9999
##  -11.7142976  6.981409 NA  -1.678  0.8786
##  -11.0966725 10.567018 NA  -1.050  0.9965
##  -24.5307014  5.694641 NA  -4.308  0.0010
##  -22.5551770  5.329160 NA  -4.232  0.0014
##   -6.7573096  1.995566 NA  -3.386  0.0344
##   -3.5379404  2.217540 NA  -1.595  0.9112
##  -16.8965103  6.908648 NA  -2.446  0.3750
##  -16.2788852 10.518439 NA  -1.548  0.9272
##    1.9755244  7.665345 NA   0.258  1.0000
##   17.7733918  5.883135 NA   3.021  0.1024
##   20.9927610  5.935498 NA   3.537  0.0208
##    7.6341911  8.833190 NA   0.864  0.9994
##    8.2518162 11.871438 NA   0.695  0.9999
##   15.7978674  5.501075 NA   2.872  0.1510
##   19.0172367  5.589740 NA   3.402  0.0327
##    5.6586667  8.605794 NA   0.658  1.0000
##    6.2762918 11.703341 NA   0.536  1.0000
##    3.2193692  2.657718 NA   1.211  0.9882
##  -10.1392007  7.069786 NA  -1.434  0.9569
##   -9.5215756 10.625670 NA  -0.896  0.9992
##  -13.3585700  7.107812 NA  -1.879  0.7723
##  -12.7409448 10.650215 NA  -1.196  0.9894
##    0.6176251 12.498682 NA   0.049  1.0000
## 
## Results are averaged over the levels of: rep 
## P value adjustment: tukey method for comparing a family of 12 estimates
m <- glm(rate.per.flower.mean.time~net.treatment:insect.RTU %in% rep + mean.temp, family = "Gamma", data = freq.2016)
anova(m, test = "Chisq")
## Analysis of Deviance Table
## 
## Model: Gamma, link: inverse
## 
## Response: rate.per.flower.mean.time
## 
## Terms added sequentially (first to last)
## 
## 
##                              Df Deviance Resid. Df Resid. Dev  Pr(>Chi)
## NULL                                           229     522.69          
## mean.temp                     1    38.73       228     483.96 < 2.2e-16
## net.treatment:insect.RTU:rep 57   407.45       171      76.51 < 2.2e-16
##                                 
## NULL                            
## mean.temp                    ***
## net.treatment:insect.RTU:rep ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
lsmeans(m, pairwise~net.treatment:insect.RTU, adjust="tukey")
## $lsmeans
##  net.treatment                  insect.RTU   lsmean        SE df asymp.LCL
##  Annual flowers in open         bees       2.729235 0.9224828 NA  0.921202
##  Annual flowers under Ambrosia  bees             NA        NA NA        NA
##  Annual flowers under Larrea    bees             NA        NA NA        NA
##  Larrea flowers with annuals    bees             NA        NA NA        NA
##  Larrea flowers without annuals bees             NA        NA NA        NA
##  Annual flowers in open         flies            NA        NA NA        NA
##  Annual flowers under Ambrosia  flies            NA        NA NA        NA
##  Annual flowers under Larrea    flies            NA        NA NA        NA
##  Larrea flowers with annuals    flies            NA        NA NA        NA
##  Larrea flowers without annuals flies            NA        NA NA        NA
##  Annual flowers in open         other            NA        NA NA        NA
##  Annual flowers under Ambrosia  other            NA        NA NA        NA
##  Annual flowers under Larrea    other            NA        NA NA        NA
##  Larrea flowers with annuals    other            NA        NA NA        NA
##  Larrea flowers without annuals other            NA        NA NA        NA
##  asymp.UCL
##   4.537268
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
##         NA
## 
## Results are averaged over the levels of: rep 
## Results are given on the inverse (not the response) scale. 
## Confidence level used: 0.95 
## 
## $contrasts
##  contrast                                                                   
##  Annual flowers in open,bees - Annual flowers under Ambrosia,bees           
##  Annual flowers in open,bees - Annual flowers under Larrea,bees             
##  Annual flowers in open,bees - Larrea flowers with annuals,bees             
##  Annual flowers in open,bees - Larrea flowers without annuals,bees          
##  Annual flowers in open,bees - Annual flowers in open,flies                 
##  Annual flowers in open,bees - Annual flowers under Ambrosia,flies          
##  Annual flowers in open,bees - Annual flowers under Larrea,flies            
##  Annual flowers in open,bees - Larrea flowers with annuals,flies            
##  Annual flowers in open,bees - Larrea flowers without annuals,flies         
##  Annual flowers in open,bees - Annual flowers in open,other                 
##  Annual flowers in open,bees - Annual flowers under Ambrosia,other          
##  Annual flowers in open,bees - Annual flowers under Larrea,other            
##  Annual flowers in open,bees - Larrea flowers with annuals,other            
##  Annual flowers in open,bees - Larrea flowers without annuals,other         
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,bees      
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,bees      
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,bees   
##  Annual flowers under Ambrosia,bees - Annual flowers in open,flies          
##  Annual flowers under Ambrosia,bees - Annual flowers under Ambrosia,flies   
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,flies     
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,flies     
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,flies  
##  Annual flowers under Ambrosia,bees - Annual flowers in open,other          
##  Annual flowers under Ambrosia,bees - Annual flowers under Ambrosia,other   
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,other     
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,other     
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,other  
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,bees        
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,bees     
##  Annual flowers under Larrea,bees - Annual flowers in open,flies            
##  Annual flowers under Larrea,bees - Annual flowers under Ambrosia,flies     
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,flies       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,flies       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,flies    
##  Annual flowers under Larrea,bees - Annual flowers in open,other            
##  Annual flowers under Larrea,bees - Annual flowers under Ambrosia,other     
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,other       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,other       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,other    
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,bees     
##  Larrea flowers with annuals,bees - Annual flowers in open,flies            
##  Larrea flowers with annuals,bees - Annual flowers under Ambrosia,flies     
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,flies       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,flies       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,flies    
##  Larrea flowers with annuals,bees - Annual flowers in open,other            
##  Larrea flowers with annuals,bees - Annual flowers under Ambrosia,other     
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,other       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,other       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,other    
##  Larrea flowers without annuals,bees - Annual flowers in open,flies         
##  Larrea flowers without annuals,bees - Annual flowers under Ambrosia,flies  
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,flies    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,flies    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,flies 
##  Larrea flowers without annuals,bees - Annual flowers in open,other         
##  Larrea flowers without annuals,bees - Annual flowers under Ambrosia,other  
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,other    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,other    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,other 
##  Annual flowers in open,flies - Annual flowers under Ambrosia,flies         
##  Annual flowers in open,flies - Annual flowers under Larrea,flies           
##  Annual flowers in open,flies - Larrea flowers with annuals,flies           
##  Annual flowers in open,flies - Larrea flowers without annuals,flies        
##  Annual flowers in open,flies - Annual flowers in open,other                
##  Annual flowers in open,flies - Annual flowers under Ambrosia,other         
##  Annual flowers in open,flies - Annual flowers under Larrea,other           
##  Annual flowers in open,flies - Larrea flowers with annuals,other           
##  Annual flowers in open,flies - Larrea flowers without annuals,other        
##  Annual flowers under Ambrosia,flies - Annual flowers under Larrea,flies    
##  Annual flowers under Ambrosia,flies - Larrea flowers with annuals,flies    
##  Annual flowers under Ambrosia,flies - Larrea flowers without annuals,flies 
##  Annual flowers under Ambrosia,flies - Annual flowers in open,other         
##  Annual flowers under Ambrosia,flies - Annual flowers under Ambrosia,other  
##  Annual flowers under Ambrosia,flies - Annual flowers under Larrea,other    
##  Annual flowers under Ambrosia,flies - Larrea flowers with annuals,other    
##  Annual flowers under Ambrosia,flies - Larrea flowers without annuals,other 
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,flies      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,flies   
##  Annual flowers under Larrea,flies - Annual flowers in open,other           
##  Annual flowers under Larrea,flies - Annual flowers under Ambrosia,other    
##  Annual flowers under Larrea,flies - Annual flowers under Larrea,other      
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,flies   
##  Larrea flowers with annuals,flies - Annual flowers in open,other           
##  Larrea flowers with annuals,flies - Annual flowers under Ambrosia,other    
##  Larrea flowers with annuals,flies - Annual flowers under Larrea,other      
##  Larrea flowers with annuals,flies - Larrea flowers with annuals,other      
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,other   
##  Larrea flowers without annuals,flies - Annual flowers in open,other        
##  Larrea flowers without annuals,flies - Annual flowers under Ambrosia,other 
##  Larrea flowers without annuals,flies - Annual flowers under Larrea,other   
##  Larrea flowers without annuals,flies - Larrea flowers with annuals,other   
##  Larrea flowers without annuals,flies - Larrea flowers without annuals,other
##  Annual flowers in open,other - Annual flowers under Ambrosia,other         
##  Annual flowers in open,other - Annual flowers under Larrea,other           
##  Annual flowers in open,other - Larrea flowers with annuals,other           
##  Annual flowers in open,other - Larrea flowers without annuals,other        
##  Annual flowers under Ambrosia,other - Annual flowers under Larrea,other    
##  Annual flowers under Ambrosia,other - Larrea flowers with annuals,other    
##  Annual flowers under Ambrosia,other - Larrea flowers without annuals,other 
##  Annual flowers under Larrea,other - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,other - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,other - Larrea flowers without annuals,other   
##  estimate SE df z.ratio p.value
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
## 
## Results are averaged over the levels of: rep 
## P value adjustment: tukey method for comparing a family of 15 estimates
#duration of visits
m <- glm(net.visitation~net.treatment:insect.RTU %in% rep + mean.temp, family = "gaussian", data = freq.2015)
anova(m, test = "Chisq")
## Analysis of Deviance Table
## 
## Model: gaussian, link: identity
## 
## Response: net.visitation
## 
## Terms added sequentially (first to last)
## 
## 
##                              Df Deviance Resid. Df Resid. Dev  Pr(>Chi)
## NULL                                           260     4.1594          
## mean.temp                     1  0.20825       259     3.9511 4.324e-05
## net.treatment:insect.RTU:rep 47  1.31116       212     2.6400 2.346e-06
##                                 
## NULL                            
## mean.temp                    ***
## net.treatment:insect.RTU:rep ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
lsmeans(m, pairwise~net.treatment:insect.RTU, adjust="tukey")
## $lsmeans
##  net.treatment                  insect.RTU       lsmean         SE df
##  Annual flowers in open         bees        0.158604874 0.02455790 NA
##  Annual flowers under Larrea    bees        0.141744757 0.02097419 NA
##  Larrea flowers with annuals    bees        0.012555229 0.02163731 NA
##  Larrea flowers without annuals bees        0.012545125 0.02116279 NA
##  Annual flowers in open         flies       0.090058567 0.02456167 NA
##  Annual flowers under Larrea    flies       0.101023055 0.02625699 NA
##  Larrea flowers with annuals    flies       0.011592533 0.02615924 NA
##  Larrea flowers without annuals flies       0.006948023 0.02541023 NA
##  Annual flowers in open         other      -0.004183146 0.02905800 NA
##  Annual flowers under Larrea    other       0.077733225 0.02842443 NA
##  Larrea flowers with annuals    other       0.019406684 0.04159875 NA
##  Larrea flowers without annuals other       0.032689106 0.05272290 NA
##    asymp.LCL  asymp.UCL
##   0.11047227 0.20673748
##   0.10063609 0.18285342
##  -0.02985312 0.05496358
##  -0.02893319 0.05402344
##   0.04191859 0.13819855
##   0.04956031 0.15248580
##  -0.03967864 0.06286371
##  -0.04285512 0.05675116
##  -0.06113577 0.05276948
##   0.02202237 0.13344408
##  -0.06212536 0.10093873
##  -0.07064588 0.13602410
## 
## Results are averaged over the levels of: rep 
## Results are given on the identity (not the response) scale. 
## Confidence level used: 0.95 
## 
## $contrasts
##  contrast                                                                   
##  Annual flowers in open,bees - Annual flowers under Larrea,bees             
##  Annual flowers in open,bees - Larrea flowers with annuals,bees             
##  Annual flowers in open,bees - Larrea flowers without annuals,bees          
##  Annual flowers in open,bees - Annual flowers in open,flies                 
##  Annual flowers in open,bees - Annual flowers under Larrea,flies            
##  Annual flowers in open,bees - Larrea flowers with annuals,flies            
##  Annual flowers in open,bees - Larrea flowers without annuals,flies         
##  Annual flowers in open,bees - Annual flowers in open,other                 
##  Annual flowers in open,bees - Annual flowers under Larrea,other            
##  Annual flowers in open,bees - Larrea flowers with annuals,other            
##  Annual flowers in open,bees - Larrea flowers without annuals,other         
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,bees        
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,bees     
##  Annual flowers under Larrea,bees - Annual flowers in open,flies            
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,flies       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,flies       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,flies    
##  Annual flowers under Larrea,bees - Annual flowers in open,other            
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,other       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,other       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,other    
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,bees     
##  Larrea flowers with annuals,bees - Annual flowers in open,flies            
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,flies       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,flies       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,flies    
##  Larrea flowers with annuals,bees - Annual flowers in open,other            
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,other       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,other       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,other    
##  Larrea flowers without annuals,bees - Annual flowers in open,flies         
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,flies    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,flies    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,flies 
##  Larrea flowers without annuals,bees - Annual flowers in open,other         
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,other    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,other    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,other 
##  Annual flowers in open,flies - Annual flowers under Larrea,flies           
##  Annual flowers in open,flies - Larrea flowers with annuals,flies           
##  Annual flowers in open,flies - Larrea flowers without annuals,flies        
##  Annual flowers in open,flies - Annual flowers in open,other                
##  Annual flowers in open,flies - Annual flowers under Larrea,other           
##  Annual flowers in open,flies - Larrea flowers with annuals,other           
##  Annual flowers in open,flies - Larrea flowers without annuals,other        
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,flies      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,flies   
##  Annual flowers under Larrea,flies - Annual flowers in open,other           
##  Annual flowers under Larrea,flies - Annual flowers under Larrea,other      
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,flies   
##  Larrea flowers with annuals,flies - Annual flowers in open,other           
##  Larrea flowers with annuals,flies - Annual flowers under Larrea,other      
##  Larrea flowers with annuals,flies - Larrea flowers with annuals,other      
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,other   
##  Larrea flowers without annuals,flies - Annual flowers in open,other        
##  Larrea flowers without annuals,flies - Annual flowers under Larrea,other   
##  Larrea flowers without annuals,flies - Larrea flowers with annuals,other   
##  Larrea flowers without annuals,flies - Larrea flowers without annuals,other
##  Annual flowers in open,other - Annual flowers under Larrea,other           
##  Annual flowers in open,other - Larrea flowers with annuals,other           
##  Annual flowers in open,other - Larrea flowers without annuals,other        
##  Annual flowers under Larrea,other - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,other - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,other - Larrea flowers without annuals,other   
##       estimate         SE df z.ratio p.value
##   1.686012e-02 0.03467556 NA   0.486  1.0000
##   1.460496e-01 0.03536159 NA   4.130  0.0021
##   1.460597e-01 0.03459643 NA   4.222  0.0015
##   6.854631e-02 0.02959503 NA   2.316  0.4648
##   5.758182e-02 0.03733451 NA   1.542  0.9288
##   1.470123e-01 0.03800382 NA   3.868  0.0062
##   1.516569e-01 0.03677703 NA   4.124  0.0022
##   1.627880e-01 0.03243035 NA   5.020  <.0001
##   8.087165e-02 0.03977952 NA   2.033  0.6707
##   1.391982e-01 0.05007951 NA   2.780  0.1886
##   1.259158e-01 0.05982180 NA   2.105  0.6193
##   1.291895e-01 0.02872613 NA   4.497  0.0004
##   1.291996e-01 0.02864002 NA   4.511  0.0004
##   5.168619e-02 0.03458472 NA   1.494  0.9425
##   4.072170e-02 0.03290071 NA   1.238  0.9860
##   1.301522e-01 0.03242890 NA   4.013  0.0035
##   1.347967e-01 0.03221151 NA   4.185  0.0017
##   1.459279e-01 0.03830632 NA   3.809  0.0077
##   6.401153e-02 0.03418446 NA   1.873  0.7765
##   1.223381e-01 0.04571300 NA   2.676  0.2380
##   1.090557e-01 0.05593753 NA   1.950  0.7276
##   1.010307e-05 0.02898485 NA   0.000  1.0000
##  -7.750334e-02 0.03526112 NA  -2.198  0.5511
##  -8.846783e-02 0.03323990 NA  -2.661  0.2457
##   9.626951e-04 0.03272424 NA   0.029  1.0000
##   5.607206e-03 0.03255573 NA   0.172  1.0000
##   1.673837e-02 0.03896621 NA   0.430  1.0000
##  -6.517800e-02 0.03445269 NA  -1.892  0.7647
##  -6.851456e-03 0.04591203 NA  -0.149  1.0000
##  -2.013388e-02 0.05608932 NA  -0.359  1.0000
##  -7.751344e-02 0.03451329 NA  -2.246  0.5159
##  -8.847793e-02 0.03308103 NA  -2.675  0.2389
##   9.525920e-04 0.03264500 NA   0.029  1.0000
##   5.597103e-03 0.03239713 NA   0.173  1.0000
##   1.672827e-02 0.03820859 NA   0.438  1.0000
##  -6.518810e-02 0.03439774 NA  -1.895  0.7626
##  -6.861559e-03 0.04587400 NA  -0.150  1.0000
##  -2.014398e-02 0.05607663 NA  -0.359  1.0000
##  -1.096449e-02 0.03728180 NA  -0.294  1.0000
##   7.846603e-02 0.03792230 NA   2.069  0.6451
##   8.311054e-02 0.03672218 NA   2.263  0.5032
##   9.424171e-02 0.03268015 NA   2.884  0.1465
##   1.232534e-02 0.03969423 NA   0.311  1.0000
##   7.065188e-02 0.05001056 NA   1.413  0.9614
##   5.736946e-02 0.05975680 NA   0.960  0.9984
##   8.943052e-02 0.03643596 NA   2.454  0.3692
##   9.407503e-02 0.03611895 NA   2.605  0.2768
##   1.052062e-01 0.04062283 NA   2.590  0.2853
##   2.328983e-02 0.03803896 NA   0.612  1.0000
##   8.161637e-02 0.04866802 NA   1.677  0.8790
##   6.833395e-02 0.05840819 NA   1.170  0.9912
##   4.644511e-03 0.03581510 NA   0.130  1.0000
##   1.577568e-02 0.04133884 NA   0.382  1.0000
##  -6.614069e-02 0.03760594 NA  -1.759  0.8403
##  -7.814151e-03 0.04832525 NA  -0.162  1.0000
##  -2.109657e-02 0.05809315 NA  -0.363  1.0000
##   1.113117e-02 0.04011559 NA   0.277  1.0000
##  -7.078520e-02 0.03744332 NA  -1.890  0.7655
##  -1.245866e-02 0.04820367 NA  -0.258  1.0000
##  -2.574108e-02 0.05802055 NA  -0.444  1.0000
##  -8.191637e-02 0.04300201 NA  -1.905  0.7565
##  -2.358983e-02 0.05267990 NA  -0.448  1.0000
##  -3.687225e-02 0.06204072 NA  -0.594  1.0000
##   5.832654e-02 0.04951406 NA   1.178  0.9906
##   4.504412e-02 0.05907812 NA   0.762  0.9998
##  -1.328242e-02 0.06641539 NA  -0.200  1.0000
## 
## Results are averaged over the levels of: rep 
## P value adjustment: tukey method for comparing a family of 12 estimates
m <- glm(net.visitation~net.treatment:insect.RTU %in% rep, family = "gaussian", data = freq.2016)
anova(m, test = "Chisq")
## Analysis of Deviance Table
## 
## Model: gaussian, link: identity
## 
## Response: net.visitation
## 
## Terms added sequentially (first to last)
## 
## 
##                              Df Deviance Resid. Df Resid. Dev  Pr(>Chi)
## NULL                                           229     5.8264          
## net.treatment:insect.RTU:rep 57   3.7091       172     2.1173 < 2.2e-16
##                                 
## NULL                            
## net.treatment:insect.RTU:rep ***
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
lsmeans(m, pairwise~net.treatment:insect.RTU, adjust="tukey")
## $lsmeans
##  net.treatment                  insect.RTU    lsmean         SE df
##  Annual flowers in open         bees       0.2015817 0.02852403 NA
##  Annual flowers under Ambrosia  bees              NA         NA NA
##  Annual flowers under Larrea    bees              NA         NA NA
##  Larrea flowers with annuals    bees              NA         NA NA
##  Larrea flowers without annuals bees              NA         NA NA
##  Annual flowers in open         flies             NA         NA NA
##  Annual flowers under Ambrosia  flies             NA         NA NA
##  Annual flowers under Larrea    flies             NA         NA NA
##  Larrea flowers with annuals    flies             NA         NA NA
##  Larrea flowers without annuals flies             NA         NA NA
##  Annual flowers in open         other             NA         NA NA
##  Annual flowers under Ambrosia  other             NA         NA NA
##  Annual flowers under Larrea    other             NA         NA NA
##  Larrea flowers with annuals    other             NA         NA NA
##  Larrea flowers without annuals other             NA         NA NA
##  asymp.LCL asymp.UCL
##  0.1456757 0.2574878
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
##         NA        NA
## 
## Results are averaged over the levels of: rep 
## Results are given on the identity (not the response) scale. 
## Confidence level used: 0.95 
## 
## $contrasts
##  contrast                                                                   
##  Annual flowers in open,bees - Annual flowers under Ambrosia,bees           
##  Annual flowers in open,bees - Annual flowers under Larrea,bees             
##  Annual flowers in open,bees - Larrea flowers with annuals,bees             
##  Annual flowers in open,bees - Larrea flowers without annuals,bees          
##  Annual flowers in open,bees - Annual flowers in open,flies                 
##  Annual flowers in open,bees - Annual flowers under Ambrosia,flies          
##  Annual flowers in open,bees - Annual flowers under Larrea,flies            
##  Annual flowers in open,bees - Larrea flowers with annuals,flies            
##  Annual flowers in open,bees - Larrea flowers without annuals,flies         
##  Annual flowers in open,bees - Annual flowers in open,other                 
##  Annual flowers in open,bees - Annual flowers under Ambrosia,other          
##  Annual flowers in open,bees - Annual flowers under Larrea,other            
##  Annual flowers in open,bees - Larrea flowers with annuals,other            
##  Annual flowers in open,bees - Larrea flowers without annuals,other         
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,bees      
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,bees      
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,bees   
##  Annual flowers under Ambrosia,bees - Annual flowers in open,flies          
##  Annual flowers under Ambrosia,bees - Annual flowers under Ambrosia,flies   
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,flies     
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,flies     
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,flies  
##  Annual flowers under Ambrosia,bees - Annual flowers in open,other          
##  Annual flowers under Ambrosia,bees - Annual flowers under Ambrosia,other   
##  Annual flowers under Ambrosia,bees - Annual flowers under Larrea,other     
##  Annual flowers under Ambrosia,bees - Larrea flowers with annuals,other     
##  Annual flowers under Ambrosia,bees - Larrea flowers without annuals,other  
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,bees        
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,bees     
##  Annual flowers under Larrea,bees - Annual flowers in open,flies            
##  Annual flowers under Larrea,bees - Annual flowers under Ambrosia,flies     
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,flies       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,flies       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,flies    
##  Annual flowers under Larrea,bees - Annual flowers in open,other            
##  Annual flowers under Larrea,bees - Annual flowers under Ambrosia,other     
##  Annual flowers under Larrea,bees - Annual flowers under Larrea,other       
##  Annual flowers under Larrea,bees - Larrea flowers with annuals,other       
##  Annual flowers under Larrea,bees - Larrea flowers without annuals,other    
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,bees     
##  Larrea flowers with annuals,bees - Annual flowers in open,flies            
##  Larrea flowers with annuals,bees - Annual flowers under Ambrosia,flies     
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,flies       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,flies       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,flies    
##  Larrea flowers with annuals,bees - Annual flowers in open,other            
##  Larrea flowers with annuals,bees - Annual flowers under Ambrosia,other     
##  Larrea flowers with annuals,bees - Annual flowers under Larrea,other       
##  Larrea flowers with annuals,bees - Larrea flowers with annuals,other       
##  Larrea flowers with annuals,bees - Larrea flowers without annuals,other    
##  Larrea flowers without annuals,bees - Annual flowers in open,flies         
##  Larrea flowers without annuals,bees - Annual flowers under Ambrosia,flies  
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,flies    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,flies    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,flies 
##  Larrea flowers without annuals,bees - Annual flowers in open,other         
##  Larrea flowers without annuals,bees - Annual flowers under Ambrosia,other  
##  Larrea flowers without annuals,bees - Annual flowers under Larrea,other    
##  Larrea flowers without annuals,bees - Larrea flowers with annuals,other    
##  Larrea flowers without annuals,bees - Larrea flowers without annuals,other 
##  Annual flowers in open,flies - Annual flowers under Ambrosia,flies         
##  Annual flowers in open,flies - Annual flowers under Larrea,flies           
##  Annual flowers in open,flies - Larrea flowers with annuals,flies           
##  Annual flowers in open,flies - Larrea flowers without annuals,flies        
##  Annual flowers in open,flies - Annual flowers in open,other                
##  Annual flowers in open,flies - Annual flowers under Ambrosia,other         
##  Annual flowers in open,flies - Annual flowers under Larrea,other           
##  Annual flowers in open,flies - Larrea flowers with annuals,other           
##  Annual flowers in open,flies - Larrea flowers without annuals,other        
##  Annual flowers under Ambrosia,flies - Annual flowers under Larrea,flies    
##  Annual flowers under Ambrosia,flies - Larrea flowers with annuals,flies    
##  Annual flowers under Ambrosia,flies - Larrea flowers without annuals,flies 
##  Annual flowers under Ambrosia,flies - Annual flowers in open,other         
##  Annual flowers under Ambrosia,flies - Annual flowers under Ambrosia,other  
##  Annual flowers under Ambrosia,flies - Annual flowers under Larrea,other    
##  Annual flowers under Ambrosia,flies - Larrea flowers with annuals,other    
##  Annual flowers under Ambrosia,flies - Larrea flowers without annuals,other 
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,flies      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,flies   
##  Annual flowers under Larrea,flies - Annual flowers in open,other           
##  Annual flowers under Larrea,flies - Annual flowers under Ambrosia,other    
##  Annual flowers under Larrea,flies - Annual flowers under Larrea,other      
##  Annual flowers under Larrea,flies - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,flies - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,flies   
##  Larrea flowers with annuals,flies - Annual flowers in open,other           
##  Larrea flowers with annuals,flies - Annual flowers under Ambrosia,other    
##  Larrea flowers with annuals,flies - Annual flowers under Larrea,other      
##  Larrea flowers with annuals,flies - Larrea flowers with annuals,other      
##  Larrea flowers with annuals,flies - Larrea flowers without annuals,other   
##  Larrea flowers without annuals,flies - Annual flowers in open,other        
##  Larrea flowers without annuals,flies - Annual flowers under Ambrosia,other 
##  Larrea flowers without annuals,flies - Annual flowers under Larrea,other   
##  Larrea flowers without annuals,flies - Larrea flowers with annuals,other   
##  Larrea flowers without annuals,flies - Larrea flowers without annuals,other
##  Annual flowers in open,other - Annual flowers under Ambrosia,other         
##  Annual flowers in open,other - Annual flowers under Larrea,other           
##  Annual flowers in open,other - Larrea flowers with annuals,other           
##  Annual flowers in open,other - Larrea flowers without annuals,other        
##  Annual flowers under Ambrosia,other - Annual flowers under Larrea,other    
##  Annual flowers under Ambrosia,other - Larrea flowers with annuals,other    
##  Annual flowers under Ambrosia,other - Larrea flowers without annuals,other 
##  Annual flowers under Larrea,other - Larrea flowers with annuals,other      
##  Annual flowers under Larrea,other - Larrea flowers without annuals,other   
##  Larrea flowers with annuals,other - Larrea flowers without annuals,other   
##  estimate SE df z.ratio p.value
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
##        NA NA NA      NA      NA
## 
## Results are averaged over the levels of: rep 
## P value adjustment: tukey method for comparing a family of 15 estimates

Model assumptions

  1. It is acceptable to aggregate all treatments into one vector.
  2. The best fit model included interaction terms (not additive) and nests insect.RTU within reps.
  3. The data are poisson for count and frequency.
  4. It is acceptable to treat each year separately and not in a single model.

Interpretation